﻿using System.IO;
using USU.MetricsMonitor.Common;

namespace USU.MetricsMonitor.DiffProvider
{
    public abstract class BaseDiffProvider
    {
        protected string RepositaryPath;
        protected string DiffLocalDirectory;

        protected BaseDiffProvider(string repositaryPath, string diffLocalDirectory)
        {
            RepositaryPath = repositaryPath;
            DiffLocalDirectory = diffLocalDirectory;
        }

        /// <summary>
        /// Возвращает поток диффа
        /// </summary>
        /// <param name="rev">номер ревизии</param>
        /// <returns>Поток диффа, не забудьте его потом закрыть =)</returns>
        public abstract Stream GetStream(Revision rev);
    }
}
